/*
 * @FileDescription: 
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2021-11-26 09:08:53
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2021-11-26 09:31:47
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/home'
import List from '@/views/list'
Vue.use(VueRouter)

const routes = [
    { path: '/', component: Home },
    { path: '/list', component: List },
     // catch all redirect
     { path: '*', redirect: '/' }
  ]
  
  // 3. 创建 router 实例，然后传 `routes` 配置
  // 你还可以传别的配置参数, 不过先这么简单着吧。
  const router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
  })

  export default router;